.doctor-detail {
  /* background-color: #f5f5f5; */

  padding-bottom: 80px;
}

.loading {
  text-align: center;
  padding: 50px 0;
  color: #666;
}
.doctor-card{
  display: flex;
  box-sizing: border-box;
  width: 100%;
  max-width: 430px;
}

.doctor-avatar{
  flex-shrink: 0;
  width: 200px;
  padding: 10px;
  box-sizing: border-box;
}
.doctor-avatar img{
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.doctor-detail-info {
  flex: 1;
  padding: 10px;
  color: #333;
  position: relative;
  box-sizing: border-box;
  min-width: 0; /* 防止flex子元素溢出 */
  /* background: pink; */
}

.doctor-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  line-height: 30px;
  display: inline-block;
  margin-right: 10px;
}

.doctor-title {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 25px;
  display: inline-block;
  color: #666;
}

.doctor-hospital {
  font-size: 16px;
  margin-bottom: 5px;
  line-height: 25px;
}

.doctor-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 25px;
}

.doctor-gift {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 16px;
  margin-top: 10px;
}

.gift-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.gift-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.gift-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.gift-item span {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}



/* 章节样式 */
.section {
  background: white;
  margin-bottom: 0;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.title-icon {
  width: 4px;
  height: 16px;
  background: #4facfe;
  border-radius: 2px;
}

.section-content {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.comment-count {
  color: #999;
  font-weight: normal;
  font-size: 14px;
  margin-left: auto;
}

/* 评价区域 */
.comments-list {
  margin-bottom: 15px;
}

.comment-item {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-partial {
  height: 60px;
  overflow: hidden;
  position: relative;
}

.comment-partial::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(transparent, white);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.comment-user {
  flex: 1;
}

.username {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.comment-time {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.comment-content {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-left: 42px;
}



.view-more {
  text-align: center;
  color: #4facfe;
  font-size: 14px;
  cursor: pointer;
}

/* 底部栏 */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.price {
  flex: 0 0 auto;
}

.price-amount {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.consult-btn {
  background: #4facfe;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  flex: 0 0 auto;
}

.consult-btn:active {
  transform: translateY(1px);
}

/* 滚动条样式 */
.comments-container::-webkit-scrollbar {
  width: 3px;
}

.comments-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.comments-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.comments-container::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.attention-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.attention-btn img{
    width: 100%;
    height: 100%;
}
.attention-btn:active {
  transform: scale(0.95);
}
